# SERIAL ERROR
SERIAL_CONNECT_EXCEPTION = 601
SERIAL_DISCONNECT_FAILURE = 602
SERIAL_NO_RETURN_DATA = 603
SERIAL_IS_NOT_READY = 604

# SERVER ERROR
START_SERVER_EXCEPTION = 100
EMPTY_DATA_ERROR = 101
SEND_INSTRUCT_ERROR = 102
DISCONNECT_ERROR = 103

# GENERAL ERROR
LOAD_FILE_IO_ERROR = 401  # 装载模拟数据出错
UNKNOWN_FILE_FORMAT = 402  # 保存数据时，格式无法识别
UNKNOWN_FILE_NAME = 403  # 装载数据时未指明文件名

# SAVE DATA ERROR
SAVE_DAVE_ERROR = 301
SAVE_YAML_EXCEPTION = 302
SAVE_YAML_DATA_FORMAT_EXCEPTION = 303

# PARSE REBAR DATA ERROR
DATA_LENGTH_EXCEPTION = 500
DATA_HEADER_EXCEPTION = 501
DATA_IP_EXCEPTION = 502
PARSE_INSTRUCT_EXCEPTION = 503  # 解析设置参数长度错误
